package org.iryshka.skyserver;

import java.util.HashMap;

public class HTTPRequest {
	private String requestMethod;// GET, POST, etc.
	private String resourceName;// what does client want to get?
	private final HashMap<String, String> mapReqHeaders = new HashMap<String, String>();
	private byte[] requestData;
	
	public String getRequestMethod() {
		return requestMethod;
	}
	
	public void setRequestMethod(final String newRequestMethod) {
		requestMethod = newRequestMethod;
	}
	
	public String getHeader(final String header) {
		return mapReqHeaders.get(header);
	}
	
	public void setHeader(final String header, final String value) {
		mapReqHeaders.put(header, value);
	}
	
	public String getResourceName() {
		return resourceName;
	}
	
	public void setResourceName(final String newResourceName) {
		resourceName = newResourceName;
	}
	
	public byte[] getRequestData() {
		return requestData;
	}
	
	public void setRequestData(final byte[] requestData) {
		this.requestData = requestData;
	}
}
